package models

import "tuowei.com/common/models"

type SysExercises struct {
	models.Model
	Name              string              `json:"name" comment:"题库名称"`
	Description       string              `json:"description" comment:"描述"`
	Type              string              `json:"type" comment:"类型"`
	Subject           string              `json:"subject" comment:"科目"`
	Cover             string              `json:"cover" gorm:"varchar(255);comment:题库封面"`
	PublicRange       string              `json:"public_range" comment:"公开范围"`
	PublishRange      string              `json:"publish_range" comment:"发布范围"`
	Status            int                 `json:"status" comment:"状态"`
	ExercisesWareTree []ExercisesWareTree `json:"exercises_ware_tree" gorm:"-"`
	models.ControlBy
	models.ModelTime
}

func (SysExercises) TableName() string {
	return "sys_exercises"
}
